package com.jiuli.liping.service;

import com.jiuli.liping.vo.Classification;
import com.jiuli.liping.vo.Commodity;
import com.jiuli.liping.vo.CommodityFather;
import com.jiuli.liping.vo.Message;

import java.util.List;

/**
 * Author zyl
 * Date  2020-05-18
 */
public interface CommodityService {

    public Commodity get(String id);

    public List<Commodity> findList(Commodity commodity);

    public List<Commodity> findAllList();

    public int insert(Commodity commodity);

    public int insertBatch(List<Commodity> commoditys);

    public int update(Commodity commodity);

    public int delete(Commodity commodity);

    List<Classification> selectAllCommodity();

    int insertCommodity(Commodity commodity);

    List<Classification> selectAllCommodityList();

    List<Classification> selectAllCommoditySy();

    //Commodity selectOneCommodity(Commodity commodity);

    List<Classification> getProductByName(Commodity commodity);

    Message selectCommodityByFatherNumber(Commodity commodity);
}
